import http from "@/api/axios";
import { BusinessType } from "@/api/moduleConfig";
export const getListApi = (data: SingleOrderApproval.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/receivablePage`,
    data
  });
};
// 生成对账单
export const createBillApi = (data: ReceivableFee.CreateBillForm) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/createBill`,
    data
  });
};
// 反审批
export const reverseApprovalApi = (data: { ids: string[] }) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/reverseApproval`,
    data
  });
};
// 预览
export const previewFeeApi = (data: { waybillNums: string[]; ids: string[] }) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/preview`,
    data
  });
};
// 统计
export const statisticsDataApi = (data: SingleOrderApproval.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/receivableStatistics`,
    data
  });
};

//导出
export const receivableFeeExcelApi = (data: SingleOrderApproval.SearchParams) => {
  return http({
    method: "post",
    url: `export/biz/exportExcel/receivableFeeExcel`,
    data
  });
};
